/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sdd.facades.view;

import com.sdd.plains.CategoryPlain;
import com.sdd.plains.ProductPlain;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author ceu
 */
@Remote
public interface ProductViewFacade {
    public ProductPlain getProduct(long productId);
    public ProductPlain addProduct(ProductPlain productPlain);
    public List<ProductPlain> getAllProducts();
    public void addProductToCategoryWithIDs(Long idprod, Long idcat);
    public void addProductToCategory(ProductPlain p, List<CategoryPlain> list);
    public List<ProductPlain> getStarred();
    public List<ProductPlain> getProductsByCategory(Long idcat);
    public List<ProductPlain> getProducts(int from, int many);
    public List<ProductPlain> getProductsWithoutCategory();
    public List<ProductPlain> getProductsWithoutCategory(int from, int many);
    public void removeProduct(ProductPlain productPlain);
}
